package com.mccrea.pattern.decorator;

/**
 * @author mccrea
 * @version 1.0
 * @description: 咖啡店（制作咖啡）
 * @date 2021/5/9 12:02
 */
public class CoffeeStore {
    public static void main(String[] args) {
        // 2分巧克力， 一份牛奶， 一份 LongBlack
        // 一份LongBlack
        Drink longBlack = new LongBlack();
        // 一份牛奶
        longBlack = new Milk(longBlack);
        // 一份巧克力
        longBlack = new Chocolate(longBlack);
        // 再加一份巧克力
        longBlack = new Chocolate(longBlack);
        System.out.println(longBlack.getDes());
        System.out.println(longBlack.cost());
    }
}
